<?php
/**
 * 后台相关
 * @author fanzhanao
 *
 */
class member_controller_comment extends SnsController{
//	var $right_view = true;//右侧
	public function __construct($app, $controller){
		parent::__construct($app, $controller);
		$this->data = Model::factory('comment_model_data');
	}
	
	public function my_comment_action(){
		$this->requireLogin();//需要登录
		$uid = self::$login['uid'];
		$page = _('page',1);
		$clist	=	$this->data->getMyCommentsList($uid,$page,10);
		
		$pages = $this->genPages($clist['INFO']);
		
		$this->ret = array('data'=>$clist['ROWS'],'pages'=>$pages);
	}
	
	public function comment_mine_action(){
		$this->requireLogin();//需要登录
		$uid = self::$login['uid'];
		$page = _('page',1);
		$clist	=	$this->data->getCommentList($uid,$page,10);
		
		$pages = $this->genPages($clist['INFO']);
		
		$this->ret = array('data'=>$clist['ROWS'],'pages'=>$pages);
		
		$this->view = 'my_comment';
	}
}